using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media;
namespace Microsoft.Phone.Controls
{
	internal static class TreeHelpers
	{
		public static IEnumerable<FrameworkElement> GetVisualAncestors(this FrameworkElement node)
		{
			TreeHelpers.<GetVisualAncestors>d__0 <GetVisualAncestors>d__ = new TreeHelpers.<GetVisualAncestors>d__0(-2);
			<GetVisualAncestors>d__.<>3__node = node;
			return <GetVisualAncestors>d__;
		}
		public static FrameworkElement GetVisualParent(this FrameworkElement node)
		{
			return VisualTreeHelper.GetParent(node) as FrameworkElement;
		}
	}
}
